package com.cxj.cxj_test_cloud;

import android.content.res.Configuration;
import android.os.Bundle;
import android.util.Log;

import androidx.appcompat.app.AppCompatActivity;

public class SplashActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.com_cxj_activity_spalsh);

    }

    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        Log.d("cxj_test", "onConfigurationChanged: "
                + (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE ? "横屏" : "竖屏"));
        Log.d("cxj_test", "screenLayout: "
                + (newConfig.screenLayout == Configuration.SCREENLAYOUT_LAYOUTDIR_LTR ? "横屏" : "竖屏"));
        // 可继续打印 keyboardHidden、screenLayout 等字段
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.d("cxj_test", "onDestroy: ");
    }
}